<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>也许有用 技术论坛 - MAYBE IT WORKS</title>
    <link th:href="@{/show/css/bootstrap.min.css}" type="text/css" rel="stylesheet">
    <link th:href="@{/show/css/style.css}" type="text/css" rel="stylesheet">
    <link type="text/css" th:href="@{/show/css/nprogress.css}" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/show/css/imgSizeSmall.css}">
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js" type="text/javascript"></script>
    <script src="js/respond.min.js" type="text/javascript"></script>
    <script src="js/selectivizr-min.js" type="text/javascript"></script>
    <![endif]-->
    <link rel="apple-touch-icon-precomposed" th:href="@{/show/images/icon/icon.png}">
    <link rel="shortcut icon" th:href="@{/show/images/icon/favicon.ico}">
    <meta name="Keywords" content="" />
    <meta name="description" content="" />
    <script type="text/javascript">
        //判断浏览器是否支持HTML5
        /*window.onload = function() {
            if (!window.applicationCache) {
        <!-- 		window.location.href="ie.html"; -->
            }
        }*/
    </script>

</head>

<body>
<section class="container user-select">
    <header th:replace="~{show/main :: leftbar}"></header>
    <!--/超小屏幕可见-->
    <div class="content-wrap"><!--内容-->
        <div class="content">
            <div class="content-block new-content">
                <h2 class="title"><strong style="font-weight: bold">程序员老黄历<br><font style="font-size: 12px">程序员老黄历，信则有，不信则无。</font></strong></h2>
                <div class="row" >
                    <div class="news-list" th:each="calendar:${calendars}">
                        <div class="news-img col-xs-3 col-sm-3 col-md-2" >
                            <a target="_blank">
                                <!--<a target="_blank" th:href="@{/show/fileContent/}+${page.getFileId()}" >-->
                                <img th:href="@{/Calendar/CalendarData/}+${calendar.getId()}" th:src="@{/images/Calendar.png}" alt="">
                            </a>
                        </div>
                        <div class="news-info col-xs-7 col-sm-7 col-md-10">
                            <dl >
                                <dt> <a th:href="@{/Calendar/CalendarData/}+${calendar.getId()}" target="_blank" th:text="${'程序老黄历  '+calendar.getTitle()}"> 异清轩技术博客正式上线！ </a> </dt>
                                <dd class="text" th:text="${'程序老黄历，宜：'+calendar.getGood()}"></dd>
                                <dd>
                                    <span class="name">
                                        <a th:href="@{/userCenter/show/23}" th:title="${'程序员老黄历'+#dates.format(calendar.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}" rel="author">也许有用</a>
                                    </span> <span class="identity"></span> <span class="time" th:text="${'发布于'+#dates.format(calendar.getCreateTime(),'yyyy-MM-dd HH:mm:ss')}"> 2015-10-19 </span>
                                </dd>
                            </dl>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--/内容-->
    <aside th:replace="~{show/main :: rightbar}"><!--右侧>992px显示-->

    </aside>
    <footer th:replace="~{show/main :: bottombar}"></footer>
</section>
<div><a href="javascript:;" class="gotop" style="display:none;"></a></div>
<!--/返回顶部-->
<script th:src="@{/show/js/jquery-2.1.4.min.js}" type="text/javascript"></script>
<script th:src="@{/show/js/nprogress.js}" type="text/javascript" ></script>
<script th:src="@{/show/js/bootstrap.min.js}" type="text/javascript"></script>
<script th:src="@{/show/js/comm/right.js}" type="text/javascript"></script>
<script type="text/javascript" th:inline="javascript">
    //页面加载
    $('body').show();
    $('.version').text(NProgress.version);
    NProgress.start();
    setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000);
    //返回顶部按钮
    $(function(){
        $(window).scroll(function(){
            if($(window).scrollTop()>100){
                $(".gotop").fadeIn();
            }
            else{
                $(".gotop").hide();
            }
        });
        $(".gotop").click(function(){
            $('html,body').animate({'scrollTop':0},500);
        });
    });
    //提示插件启用
    $(function () {
        $('[data-toggle="popover"]').popover();
    });
    $(function () {
        $('[data-toggle="tooltip"]').tooltip();
    });
    //鼠标滑过显示 滑离隐藏
    $(function(){
        $(".carousel").hover(function(){
            $(this).find(".carousel-control").show();
        },function(){
            $(this).find(".carousel-control").hide();
        });
    });
    $(function(){
        $(".hot-content ul li").hover(function(){
            $(this).find("h3").show();
        },function(){
            $(this).find("h3").hide();
        });
    });
    //页面元素智能定位
    $.fn.smartFloat = function() {
        var position = function(element) {
            var top = element.position().top; //当前元素对象element距离浏览器上边缘的距离
            var pos = element.css("position"); //当前元素距离页面document顶部的距离
            $(window).scroll(function() { //侦听滚动时
                var scrolls = $(this).scrollTop();
                if (scrolls > top) { //如果滚动到页面超出了当前元素element的相对页面顶部的高度
                    if (window.XMLHttpRequest) { //如果不是ie6
                        element.css({ //设置css
                            position: "fixed", //固定定位,即不再跟随滚动
                            top: 0 //距离页面顶部为0
                        }).addClass("shadow"); //加上阴影样式.shadow
                    } else { //如果是ie6
                        element.css({
                            top: scrolls  //与页面顶部距离
                        });
                    }
                }else {
                    element.css({ //如果当前元素element未滚动到浏览器上边缘，则使用默认样式
                        position: pos,
                        top: top
                    }).removeClass("shadow");//移除阴影样式.shadow
                }
            });
        };
        return $(this).each(function() {
            position($(this));
        });
    };
    //启用页面元素智能定位
    $(function(){
        $("#search").smartFloat();
    });
</script>
</body>
</html>
